Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui-alerts): trigger onDismiss for SR-only alerts #1718

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

csmaty
Copy link
Contributor

@csmaty csmaty commented Oct 8, 2024

  • onDismiss was not being fired on screenReaderOnly alerts, unless transition: 'none' was specified alongside.

  • Default transition value is 'fade'. This change makes screenReaderOnly alerts an implicit transition: 'none' when executing onDismiss.

Credits for finding this bug: @meister245

@csmaty csmaty changed the title fix(ui-alert): trigger onDismiss for SR only alerts fix(ui-alert): trigger onDismiss for SR-only alerts Oct 8, 2024
@csmaty csmaty changed the title fix(ui-alert): trigger onDismiss for SR-only alerts fix(ui-alerts): trigger onDismiss for SR-only alerts Oct 14, 2024
@matyasf matyasf self-assigned this Oct 16, 2024
@matyasf
Copy link
Collaborator

matyasf commented Oct 16, 2024

Thanks for the contribution, we will check it out soon

@matyasf
Copy link
Collaborator

matyasf commented Oct 18, 2024

it works great, thanks for the fix! Can you please squash the commits into one so there is just one with the fix(ui-alerts): trigger onDismiss ... commit message? Thanks!

Copy link
Contributor

@joyenjoyer joyenjoyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, yes please squash the commits first.

@csmaty csmaty force-pushed the fix/sr-only-alert-ondismiss branch from 5fdd33e to c4f3328 Compare October 18, 2024 12:54
@csmaty
Copy link
Contributor Author

csmaty commented Oct 18, 2024

@matyasf @joyenjoyer Squashed into a single commit.

Copy link
Collaborator

@matyasf matyasf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, we will merge and release it soon :)

@joyenjoyer joyenjoyer self-requested a review October 30, 2024 12:44
@matyasf matyasf merged commit 98750f6 into instructure:master Oct 30, 2024
10 of 11 checks passed
@matyasf
Copy link
Collaborator

matyasf commented Oct 30, 2024

Thanks for the contribution, we will release this soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants